<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

	
<c:if test="${funcionario.contato != null}">
	<c:set var="contato" value="${funcionario.contato}"/>
</c:if>

<c:if test="${cliente.contato != null}">
	<c:set var="contato" value="${cliente.contato}"/>
</c:if>

<c:if test="${fornecedor.contato != null}">
	<c:set var="contato" value="${fornecedor.contato}"/>
</c:if>


<fieldset>

					<legend>Contato</legend>
					
					
					<c:if test="${!param.newFunc}">
						<div class="form-group col-xs-8">
							<label for="inputNomeContato">Nome Contato</label> 
							<input type="text" name="nomeContato" class="form-control" id="inputNomeContato" value="${contato.nomeContato}" placeholder="Nome Contato" data-required>
						</div>
					</c:if>	
					<span class="spacer"></span>
					<div class="form-group col-xs-2">
						<label for="inputTelefone">Telefone</label> 
						<input type="text" name="contato.telefone" class="form-control telefone" id="inputTelefone" value="${contato.telefone}" placeholder="Telefone" data-required>
					</div>	
					<div class="form-group col-xs-2">
						<label for="inputFAX">FAX</label> 
						<input type="text" name="contato.fax" class="form-control telefone" id="inputFAX" value="${contato.fax}" placeholder="FAX" >
					</div>
					<div class="form-group col-xs-2">
						<label for="inputCelular">Celular</label> 
						<input type="text" name="contato.celular" class="form-control celular" id="inputCelular" value="${contato.celular}" placeholder="Celular" >
					</div>
					<span class="spacer"></span>
					<div class="form-group col-xs-4">
						<label for="inputEmail">Email</label> 
						<input type="text" name="contato.email" class="form-control" id="inputEmail" value="${contato.email}" placeholder="Email" >
					</div>
					<div class="form-group col-xs-4">
						<label for="inputSite">Site</label> 
						<input type="text" name="contato.site" class="form-control" id="inputSite" value="${contato.site}" placeholder="Site" >
					</div>	
				</fieldset>	